package com.wyz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.wyz.entity.Log;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface LogMapper extends BaseMapper<Log> {
//    List<Log> getLogBySearch(@Param("params") Params params);//根据搜索条件查询日志
    @Insert("INSERT INTO t_log (content, time, operator, ip) VALUES (#{content}, #{time}, #{operator}, #{ip})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insert(Log log);
}
